package cn.edu.lingnan.demo1.demo1Service;

import cn.edu.lingnan.demo1.demo1Dao.UserMapper1;
import cn.edu.lingnan.demo1.demo1Dao.UserMapperMysqlImpl1;

public class UserServiceMysqlImpl1 implements UserService1 {

    @Override
    public void query() {
        System.out.println("MySql的查询逻辑实现");
        UserMapper1 userMapperMysqlImpl1=new UserMapperMysqlImpl1();
        userMapperMysqlImpl1.query();
    }

    @Override
    public void insert() {
        System.out.println("MySql的插入逻辑实现");
        UserMapper1 userMapperMysqlImpl1=new UserMapperMysqlImpl1();
        userMapperMysqlImpl1.insert();
    }

    @Override
    public void update() {
        System.out.println("MySql的修改逻辑实现");
        UserMapper1 userMapperMysqlImpl1=new UserMapperMysqlImpl1();
        userMapperMysqlImpl1.update();
    }

    @Override
    public void delete() {
        System.out.println("MySql的删除逻辑实现");
        UserMapper1 userMapperMysqlImpl1=new UserMapperMysqlImpl1();
        userMapperMysqlImpl1.delete();
    }
}
